﻿/*
 * Returns the maximum date handled by SQL Server.
 */
create function [Date].[MaxDate] ()
returns date as
begin

  return Convert( datetime, 2958463 );
  
end